
x = [1,2,3]

puts x[1]

class Array
  alias :get_index :[]
  alias :set_index :[]=
  
  def [](index)
    get_index(index - 1)
  end
  
  def []=(index, value)
    set_index(index - 1, value)
  end
end

puts x[1]
x[1] = 100
puts x.inspect

